package org.lee.springcloud.consumer.services;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author jackielee
 * @version 1.0
 * @description HelloRemote
 * @date 2021/3/10
 **/
@FeignClient(name = "spring-cloud-producer", fallback = HelloRemoteHystrix.class)
public interface HelloRemote {
    @GetMapping(value = "hello")
    String hello(@RequestParam(value = "name") String name);
}
